package org.finesys.chat.core.base.events;

import org.springframework.context.ApplicationEvent;

/**
 * 知识库刷新事件
 */
public class KnowledgeStoreEvent extends ApplicationEvent {
    //事件类型
    private String type;

    public KnowledgeStoreEvent(Object source, String type) {
        super(source);
        this.type = type;
    }

    public String getType() {
        return type;
    }

    @Override
    public String toString() {
        return "KnowledgeStoreEvent{" +
                "type='" + type + '\'' +
                ", source=" + source +
                '}';
    }
}
